package assignment2;
//Author Mark Mckillion, Date Completed 09/12/2011

public interface StackADT <T>
{   /*This is an abstract interface which includes the methods that all stacks
     *should be able to implement.
     *I will create an ArrayStack class that will implement this interface.
     *The instance T allows the stack to be used for any type of Objects. */
    
    public void push(T element); //This will add "element" to the stack.
    public T pop(); //This will remove the top element from the stack.
    public T peek(); //This will return the top element of the stack
    public boolean isEmpty(); //This will return true if the stack is empty.
    public int size(); //This will return the stack size.
    public String toString(int elem); //This will convert the Object at "int elem" into a string.
}